import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 设置反向代理，前端请求默认发送到 http://localhost:8443/api
var axios = require('axios')
axios.defaults.baseURL = 'http://localhost:8443/api'
// 全局注册，之后可在其他组件中通过 this.$axios 发送数据
const app = createApp(App)
// app.prototype.$axios = 'axios'
app.config.globalProperties.$axios = 'axios'
// Vue.config.productionTip = false

createApp(App).use(store).use(router).mount('#app')
